<style>
    .disabled{
        display: table-cell;
    }
    .information_hb {
        overflow : hidden;
        text-overflow: ellipsis ;
        display: -webkit-box ;
        -webkit-line-clamp: 2 ;
        -webkit-box-orient: vertical ;
        margin: 0 0 6px;
        line-height: 16px;
        height: 34px;
        font-size: 14px;
        padding-top: 3px;
    }
</style>
<div class="contents">
    <ol class="breadcrumb">
        <li><a href="#/index/panel">首页</a></li>
        <li class="active">金策师资讯板块-资讯列表</li>
    </ol>
    <form class="form-inline search-box" name="form" role="form" ng-submit="queryList()" novalidate>
        <div class="form-group">
            <label class="sr-only" >资讯类型</label>
            <select ng-model="type" class="form-control">
                <option value="">全部</option>
                <option value="1">即时快讯</option>
                <option value="2">资讯简报</option>
                <option value="3">热点资讯</option>
                <option value="4">早鸟理财师驿站</option>
            </select>
        </div>
        <!--<div class="form-group">-->
            <!--<div class="input-group"-->
                 <!--moment-picker="releaseTimeStart"-->
                 <!--format="YYYY-MM-DD" start-view="day">-->
                    <!--<span class="input-group-addon">-->
                        <!--<i class="glyphicon glyphicon-calendar"></i>-->
                    <!--</span>-->
                <!--<input class="form-control" name="releaseTimeStart"-->
                       <!--placeholder="预发布开始时间"-->
                       <!--ng-model="releaseTimeStart">-->
            <!--</div>-->
        <!--</div>-->
        <!-- - -->
        <!--<div class="form-group">-->
            <!--<div class="input-group"-->
                 <!--moment-picker="releaseTimeEnd"-->
                 <!--format="YYYY-MM-DD" start-view="day">-->
                        <!--<span class="input-group-addon">-->
                            <!--<i class="glyphicon glyphicon-calendar"></i>-->
                        <!--</span>-->
                <!--<input class="form-control" name="releaseTimeEnd"-->
                       <!--placeholder="预发布结束时间"-->
                       <!--ng-model="releaseTimeEnd">-->
            <!--</div>-->
        <!--</div>-->
        <button type="submit" class="btn btn-primary">查询</button>
    </form>
    <table class="table table-striped table-hover">
        <thead>
        <tr>
            <th width="100">ID</th>
            <th width="100">类型</th>
            <th width="100">标题</th>
            <th width="100">摘要</th>
            <th width="100">是否推送消息</th>
            <th width="100">是否上架</th>
            <th width="100">预发布时间</th>
            <th width="100">发布时间</th>
            <th width="80">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="fb in list">
           <td>{{fb.id}}</td>
            <td>{{fb.type=='1'&&'即时快讯'||fb.type=='2'&&'资讯简报'||fb.type=='3'&&'热点资讯'||fb.type=='4'&&'早鸟理财师驿站'}}</td>
            <td><div class="information_hb">{{fb.title}}</div></td>
            <td><div class="information_hb">{{fb.birefDesc}}</div></td>
            <td>{{fb.pushMeg=='1'&&'是'||fb.pushMeg=='2'&&'否'}}</td>
            <td>{{fb.upStatus=='1'&&'是'||fb.upStatus=='2'&&'否'}}</td>
            <td>{{fb.preTime| date:'yyyy-MM-dd HH:mm'}}</td>
            <td>{{(fb.releaseTime|informationTime)| date:'yyyy-MM-dd HH:mm'}}</td>
            <td>
                <a href="#/shop/information/edit?id={{fb.id}}">编辑</a>
                <a ng-click="upordownInfo(fb.id, '2')" ng-if="fb.upStatus=='1'">下架</a>
                <a ng-click="upordownInfo(fb.id, '1')" ng-if="fb.upStatus=='2'">上架</a>
                <!--<a ng-click="deleteInformation(fb.id)">删除</a>-->
            </td>
        </tr>
        </tbody>
    </table>

    <div style="display: inline-block" class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="list.length > 0"></div>
    <div style="display: inline-block;vertical-align: text-bottom;margin: 15px;color: #428bca;font-size: 14px" class="form-inline" ng-show="list.length > 0">
        <label style="vertical-align: sub;font-weight: 400">每页显示：</label><input type="number" class="form-control" ng-model="setPageSize" max="1000"><label style="vertical-align: baseline;font-weight: 400" >&nbsp;&nbsp;条（最大1000条）<button type="button" class="btn btn-primary" ng-click="changePageSize()" style="vertical-align: sub">确定</button></label>
    </div>
</div>
